FROM daocloud.io/library/python:3.6
ENV PYTHONUNBUFFERED 1
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
RUN mkdir /code
WORKDIR /code
ADD requirements /code/requirements
#ADD dependencies /code/dependencies/
RUN apt-get update && apt-get -y install supervisor && apt install -y openssh-server
RUN pip install --upgrade pip -i https://pypi.mirrors.ustc.edu.cn/simple
RUN pip install -r requirements/base.txt -i https://pypi.mirrors.ustc.edu.cn/simple
